import { createApp } from "vue";
import { createPinia } from "pinia";
import "@/assets/main.scss";
import "virtual:uno.css";
import App from "./App.vue";
import router from "./router";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { Lazyload } from 'vant';
import useRichText from '@/utils/useRichText'
import OverlayInputPlugin from './utils/OverlayInputPlugin'

const app = createApp(App);
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
app.use(Lazyload, {
  lazyComponent: true,
});
app.use(useRichText);
app.use(OverlayInputPlugin)
app.use(pinia);
app.use(router);
app.mount("#app");
